package com.zhj.edu.iotserver.service;

import com.zhj.edu.vo.PayVo;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

public interface PayService {
    /**
     * 支付的业务类
     * @param payVo
     * @param req
     * @return
     */
    String pay(PayVo payVo, HttpServletRequest req) throws Exception;

    /**
     * 微信服务器通知我们的业务处理
     * @param req
     * @param resp
     */
    void weiXinNotify(HttpServletRequest req, HttpServletResponse resp) throws Exception;
}
